package main

import (
	"fmt"
	"reflect"
)

type Person struct {
	Name string
	Age  uint8
}

func main() {
	p1 := Person{"zhjx", 18}

	val := reflect.ValueOf(p1)

	fmt.Println("p1 is ", val)

	p2 := &p1
	val2 := reflect.ValueOf(p2)
	fmt.Println("p2 is ", val2)

	val21 := reflect.Indirect(val)
	fmt.Println("p21 is ", val21)

	val22 := reflect.Indirect(val2)
	fmt.Println("p22 is ", val22)
}
